home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
rdslik1a
/
function.asp
< prev
next >
Wrap
Text File
|
1999-07-27
|
797b
|
18 lines
<SCRIPT LANGUAGE="VBSCRIPT">
Sub AddToList(strDesc, strVal, objLst)
Dim objElement
Set objElement = document.createElement("OPTION")
ObjElement.text = strDesc
ObjElement.value = strVal
ObjElement.Selected = True
objLst.add(objElement)
End Sub
Sub LoadArray(InputDesc,TitleDesc,DefaultValue, TableName, IDField, DescField, cmbUpdate, AllowDup, ExtraFields)
Dim Answer
Answer = inputbox(InputDesc,TitleDesc,DefaultValue)
if Answer <> "" then
document.Frames("HiddenFrame").location="AsyncAddCMB.asp?NewValue=" & Answer & "&Table="& TableName &"&FieldID="& IDField &"&FieldDesc=" & DescField & "&cmbName=" & cmbUpdate & "&AllowDup=" & AllowDup & "&ExtraFields=" & ExtraFields
end if
End Sub
</SCRIPT>
<IFRAME ID="HiddenFrame" Style="display:none"></IFRAME>